<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

#macro (writePages $pageList)
  #if ($pageList.size() == 0)
    <p>No Pages</p>
  #else  
      <ul>
      #if ($appspec.defaultPage)
        <li class="default"><a href="$appspec.defaultPage.id$appspec.htmlExtension">$appspec.defaultPage.title</a> (Default Page)</li> 
      #end
      #foreach($page in $pageList)
        #if ($page.id != $appspec.defaultPage.id)      
            <li><a href="$page.id$appspec.htmlExtension">$page.title</a></li>
        #end
      #end
      </ul>
  #end
#end

#macro (writeEmails $emailList)
  #if ($emailList.size() > 0)
      <ul id="emails">
      #foreach($email in $emailList)
        <li>E-mail: <a href="$email.id$appspec.htmlExtension">$email.title</a></li>
      #end
      </ul>
  #end
#end

<html>
  <head>
    <title>$appspec.title - Parameter Matrix</title>
    <link rel="stylesheet" type="text/css" href="reset.css" />
    <link rel="stylesheet" type="text/css" href="style.css" />
  </head>
  <body>
    <div id="pagecontainer">

    <h1><strong>$appspec.title</strong> Page Parameters</h1>
    
    <div class="breadcrumb">
        <a href="index.html">&laquo; Back to project overview</a>
    </div>
    
    <table class="parameters">
    <tr class="parameter-names">
      <th></th>
      #foreach ($param in $appspec.allPageParameters)
      <th><abbr title="$param.htmlDescription">$param.id</abbr></th>
      #end
    </tr>
    #foreach ($page in $appspec.pages)
      #set ($pageNum = $velocityCount - 1)
      #set ($pageParams = $pagesParams.get(${pageNum}))
      <tr>
        <th><a href="${page.id}.html">${page.id}</a></th>
        #foreach ($pageParam in $pageParams)
          <td>#if ($pageParam)X#end</td>
        #end
      </tr>
      #end
    </table>

    <div id="footer">
      Built with Clickframes &middot; <a href="http://www.clickframes.org/">http://www.clickframes.org/</a>
    </div>
    
    </div>
  </body>
</html>